package com.star.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Star
 * @since 2021-04-21
 */
@TableName("tb_province")
public class Province extends Model<Province> {

    private static final long serialVersionUID = 1L;

    /**
     * 省份编号
     */
    @TableId(value = "pro_id", type = IdType.AUTO)
    private Integer proId;
    /**
     * 省份名字
     */
    private String proName;
    /**
     * 省份代号
     */
    private String proCode;


    public Integer getProId() {
        return proId;
    }

    public void setProId(Integer proId) {
        this.proId = proId;
    }

    public String getProName() {
        return proName;
    }

    public void setProName(String proName) {
        this.proName = proName;
    }

    public String getProCode() {
        return proCode;
    }

    public void setProCode(String proCode) {
        this.proCode = proCode;
    }

    @Override
    protected Serializable pkVal() {
        return this.proId;
    }

    @Override
    public String toString() {
        return "Province{" +
        ", proId=" + proId +
        ", proName=" + proName +
        ", proCode=" + proCode +
        "}";
    }
}
